init('Session');
(function(){
//	org.jsmud.Session = function(){
//		
//	};
//	org.jsmud.Session.prototype = {
//		user                : null
//		,room               : null
//		,aliasService       : null
//		,getUser : function(){ return this.user; }
//		,setUser : function(user){ this.user = user; }
//		,getRoom : function(){ return this.room; }
//		,setRoom : function(room){ 
//			this.room = room;
//			if( this.user.getRoomId() != room.getId() ){
//				this.user.setRoomId(this.room.getId());
//				this.user.save();
//			}
//		}
//	};
	exports.current = {
		user                : null
		,room               : null
		,aliasService       : null
		,itemService        : null
		,getUser : function(){ return this.user; }
		,setUser : function(user){ this.user = user; }
		,getRoom : function(){ return this.room; }
		,setRoom : function(room){ 
			this.room = room;
			if( this.user.getRoomId() != room.getId() ){
				this.user.setRoomId(this.room.getId());
				this.user.save();
			}
		}
	};
})();